import axios from 'axios';

// 列表
let rule_list = (params) => axios.get('/product/product/rule', { params });

// 保存新建或编辑
let set_rule = (id, data) => axios.post(`/product/product/rule/${id}`, data);

// 删除
let del_rules = (params) => axios.delete('/product/product/rule/delete', { params });

export default {
    rule_list,
    set_rule,
    del_rules,
}